//package com.cskaoyan.gateway.controller.user;
//
//import com.mall.commons.result.ResponseData;
//import com.mall.commons.result.ResponseUtil;
//import com.mall.commons.tool.utils.CookieUtil;
//import com.mall.user.ILogoutService;
//import com.mall.user.annotation.Anoymous;
//import com.mall.user.constants.SysRetCodeConstants;
//import com.mall.user.dto.UserLogoutRequest;
//import com.mall.user.dto.UserLogoutResponse;
//import org.apache.dubbo.config.annotation.Reference;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
///**
// * @ClassName: LoginOutController
// * @Author: 南风
// * @Email: 1480207032@qq.com
// * @Description:
// * @Date: 2020/7/11 20:44
// */
//@RestController
//@RequestMapping("user")
//@Anoymous
//public class LoginOutController {
//   /* @Reference
//    ILogoutService logoutService;*/
//
//    @GetMapping("loginOut")
//    public ResponseData logout(HttpServletRequest request, HttpServletResponse response){
//        CookieUtil.setCookie(response, null);
//
//        return new ResponseUtil<>().setData(null);
//
//        /*UserLogoutRequest userLogoutRequest = new UserLogoutRequest();
//
//        UserLogoutResponse userLogoutResponse = logoutService.logout(userLogoutRequest);
//        if (userLogoutResponse.getCode().equals(SysRetCodeConstants.SUCCESS.getCode())){
//            return new ResponseUtil<>().setData(null);
//        }
//        return new ResponseUtil<>().setErrorMsg(userLogoutResponse.getMsg());*/
//    }
//}
